# Mattise Makefile
# Copyright 2007 Matthew Iselin

# makes everything - the mattise library _must_ be installed as well or else the userland programs
# won't compile
all:
	$(MAKE) -f kernel.mk all
	$(MAKE) -C Userland/mattise_lib all
	$(MAKE) -C Userland/mattise_lib install
	$(MAKE) -C Userland all

# cleans everything
clean:
	$(MAKE) -f kernel.mk clean
	$(MAKE) -C Userland/mattise_lib clean
	$(MAKE) -C Userland clean

#installs everything
install:
	$(MAKE) -f kernel.mk install
	$(MAKE) -C Userland/mattise_lib install
	$(MAKE) -C Userland install

# builds the kernel
kernel_all:
	$(MAKE) -f kernel.mk all

# cleans the kernel
kernel_clean:
	$(MAKE) -f kernel.mk clean

# installs the kernel
kernel_install:
	$(MAKE) -f kernel.mk install

# builds all the userland software
userland_all:
	$(MAKE) -C Userland all
	
# cleans all the userland software
userland_clean:
	$(MAKE) -C Userland clean

# installs all the userland software
userland_install:
	$(MAKE) -C Userland install

# builds the mattise library
mattiselib_all:
	$(MAKE) -C Userland/mattise_lib all

# cleans the mattise library
mattiselib_clean:
	$(MAKE) -C Userland/mattise_lib clean

# installs the mattise library
mattiselib_install:
	$(MAKE) -C Userland/mattise_lib install
